package com.vpx.server.bean.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 操作日志
 * </p>
 *
 * @author denglw
 * @since 2021-09-04
 */
@Getter
@Setter
@TableName("sys_operate_log")
@ApiModel(value = "SysOperateLog对象", description = "操作日志")
public class SysOperateLog extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "登录账号")
    private String loginAccount;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "操作名称")
    private String operateName;

    @ApiModelProperty(value = "操作结果 枚举：SUCCESS/FAIL")
    private String operatorResult;

    @ApiModelProperty(value = "失败原因")
    private String failDesc;

    @ApiModelProperty(value = "修改用户id")
    private Long updateUserId;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    @ApiModelProperty("日志槽位")
    private Integer slotNum;

    @ApiModelProperty("日志模块")
    private String logModule;

    @ApiModelProperty("日志类型")
    private String logType;
}
